<template>
  <div class="container">
    <div class="flex flex-wrap f-ptp10">
      <el-select class='f-mrt20 f-mbt10 f-w120' v-model="vip" clearable placeholder="请选择">
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value">
        </el-option>
      </el-select>
      <el-input class='f-mrt20 f-mbt10 f-w120' v-model="phone" placeholder="案件编号"></el-input>
      <el-select class='f-mrt20 f-mbt10 f-w120' v-model="vip" clearable placeholder="省市选择">
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value">
        </el-option>
      </el-select>
      <el-input class='f-mrt20 f-mbt10 f-w120' v-model="createTime" placeholder="发生时间开始-结束"></el-input>
      <el-input class='f-mrt20 f-mbt10 f-w120' v-model="createTime" placeholder="用户ID"></el-input>
      <el-input class='f-mrt20 f-mbt10 f-w120' v-model="createTime" placeholder="用户手机"></el-input>
      <el-input class='f-mrt20 f-mbt10 f-w120' v-model="createTime" placeholder="律师姓名"></el-input>
      <el-input class='f-mrt20 f-mbt10 f-w120' v-model="createTime" placeholder="律师电话"></el-input>
      <el-button class='f-h40' @click="search" type="primary">新增案件</el-button>
    </div>
    <div>
      <el-table
        :data="tableData"
        border
        style="width: 100%">
        <el-table-column prop="issueType" label="案件编号" width="120"></el-table-column>
        <el-table-column prop="phone" label="案件类型" width="120"></el-table-column>
        <el-table-column prop="region" label="地区" width="120"></el-table-column>
        <el-table-column prop="region" label="用户ID" width="120"></el-table-column>
        <el-table-column prop="region" label="用户手机" width="120"></el-table-column>
        <el-table-column prop="content" label="案件详情" width="100">
          <template slot-scope="scope">
            <span @click="handleEdit(scope.$index, scope.row)" class='s-c-green f-csp'>查看</span>
          </template>
        </el-table-column>
        <el-table-column prop="createTime" label="发生时间" width="120"></el-table-column>
        <el-table-column prop="createTime" label="律师" width="120"></el-table-column>
        <el-table-column prop="createTime" label="律师电话" width="120"></el-table-column>
        <el-table-column prop="createTime" label="当前状态" width="120"></el-table-column>
        <el-table-column prop="manage" label="管理" width="360">
          <template slot-scope="scope">
            <span @click="handleEdit(scope.$index, scope.row)" class='s-c-green f-csp f-mrt10'>添加进度</span>
            <span @click="handleEdit(scope.$index, scope.row)" class='s-c-green f-csp f-mrt10'>更换律师</span>
            <span @click="handleEdit(scope.$index, scope.row)" class='s-c-green f-csp f-mrt10'>案件结束</span>
            <span @click="handleEdit(scope.$index, scope.row)" class='s-c-green f-csp'>作废</span>
          </template>
        </el-table-column>
      </el-table>
      <div>
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page.sync="currentPage1"
          :page-size="100"
          layout="total, prev, pager, next"
          :total="1000">
        </el-pagination>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CaseManage',
  data() {
    return {
      phone: '',
      password: '',
      tableData: [
        {
          userCode: '2016-05-02',
          phone: '18098758888',
          name: '王小虎',
          idCard: '330326199908080606',
          accountBalance: 5000.00,
          vip: 1,
          createTime: '2018-12-30'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        }, {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }
      ]
    }
  },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.top{
  /* display: flex; */
  overflow: hidden;
  padding: 10px 0;
}
.top-item{
  float: left;
  margin-right: 20px;
}
.w-120{
  width: 120px;
}
.w-200{
  width: 200px;
}
</style>
